<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Web-Markdown-Editor</title>
</head>
<style>
    body {
        padding: 0 50px;
        /* background: #eee */
        background: #fff
    }
    a{
        color: #4285f4;
        text-decoration: underline;
    }
    .hide {
        display: none;
    }

    .my-editor {
        /* border: 2px solid #ddd; */
        width: 100%;
        min-height: 800px;
        display: flex;
        margin: 20px auto;
        justify-content: center;
    }
    button {
        padding: 5px 10px
    }
    .toolbar {
        display: flex;
        justify-content:space-between;
        margin-top: 25px;
    }
    .curr{
        background: green;
        color: #fff
    }

</style>
<body class='light'>
    <div class="toolbar">
        <div>
           <button class="mode-btn curr" onclick="changeMode(1)">实时渲染模式</button>&nbsp;&nbsp;&nbsp;
           <button class="mode-btn" onclick="changeMode(2)">分屏模式</button>&nbsp;&nbsp;&nbsp;
           <button class="mode-btn" onclick="changeMode(3)">源码模式</button>&nbsp;&nbsp;&nbsp;
           <button class="mode-btn" onclick="changeMode(4)">只读模式</button>
        </div>
    </div>
    <div id="myEditor" class="my-editor"></div>
</body>
</html>